package org.example.jccluboss.controller;

import org.example.jccluboss.service.FileService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 啊昌
 * @date 2025/4/17 22:22
 * FileController 文件操作controller
 */
@RestController
public class FileController {
	@Resource
	private FileService fileService;

	@RequestMapping("/testGetAllBuckets")
	public String testGetAllBuckets() throws Exception {
		List<String> allBucket = fileService.getAllBucket();
		return allBucket.get(0);
	}
}
